package fanshe;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/3-08-03-15:23
 * @Description：fanshe
 */
public class fanshe1_use {
    //Class.forName 加载类并触发类初始化


    public static void main(String[] args) throws ClassNotFoundException {
        Class.forName("fanshe.hello");
    }
}

class hello{
    static {
        System.out.println("true = " + true);
    }

    public hello() {
        System.out.println("--------------");
    }
}
